<!DOCTYPE html>
<html lang="en">

<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <meta http-equiv="X-UA-Compatible" content="ie=edge">
   <title>高仿个zepto</title>
   <!-- <script src="zepto1.6.js
      "></script> -->
   <!-- <script src="https://cdn.bootcss.com/zepto/1.2.0/zepto.js"></script> -->
</head>

<body>
   <h1>模仿个zepto</h1>
   <p id="p1"></p>
   <div>
      <span>test</span>
      <span>test</span>
      <span>test</span>
   </div>
   <script src="index.js"></script>
   <script>
       var $p = $('p');
       var  $span = $('span'); 
       console.log($p, $span,$().addClass);  
   </script>
   
   
]
</body>

</html>